﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace privateworking.Service
{
    class ChukumingxiService
    {
        //材料全部查询
        public Bean.Chukuguanli_yuancailiaoBean chukuguanli_ServiceSelect(DateTime dateStart,DateTime dateEnd)
        {
            DAO.Chukumingxi_yuancailiaoDao yuanLiaoDao = new DAO.Chukumingxi_yuancailiaoDao();
            return yuanLiaoDao.chukumingxi_yuancailiaoDaoSelect(dateStart, dateEnd);
        }
        //出库明细详细查询
        public Bean.Chukuguanli_yuancailiaoBean chukuguanli_ServiceDetailsSelect(Bean.Chukumingxi_yuancailiaoBean bean)
        {
            DAO.Chukuguanli_yuancailiaoDao yuanLiaoDao = new DAO.Chukuguanli_yuancailiaoDao();
            return yuanLiaoDao.chukuguanli_yuancailiaoDaoMingxiCondition(bean);
        }

        public bool chukumingxi_yuancailiaoServicUpdate(Bean.Chukuguanli_yuancailiaoBean bean)
        {
            DAO.Chukumingxi_yuancailiaoDao yuanLiaoDao = new DAO.Chukumingxi_yuancailiaoDao();
            return yuanLiaoDao.chukumingxi_yuancailiaoDaoUpdate(bean);
        }

        public bool chukuguanli_yuancailiaoServicUpdate(Bean.Chukuguanli_yuancailiaoBean bean,string startDay,string endDay)
        {
            DAO.Chukumingxi_yuancailiaoDao yuanLiaoDao = new DAO.Chukumingxi_yuancailiaoDao();
            return yuanLiaoDao.chukuguanli_yuancailiaoDaoUpdate(bean, startDay, endDay);
        }
    }
}
